package cate.game.role.pay.limittimeggift.msg;

import cate.game.client.msg.ClientMsg;
import cate.game.client.msg.MsgConfig;
import cate.game.client.msg.MsgOutput;
import cate.game.client.msg.id.MsgIdLimitGift;
import cate.game.role.Role;
import cate.game.role.pay.limittimeggift.LimitTimeGift;
import easy.java.dev.note.NoteField;

@ClientMsg(title = "限时礼包数据 的 返回")
public class LimitTimeGiftDataResp implements MsgOutput {

    @NoteField(value = "限时礼包数据")
    public LimitTimeGift gift;

    public LimitTimeGiftDataResp() {
    }

    public LimitTimeGiftDataResp(Role role) {
        gift = role.getPay().gift;
    }

    @Override
    public MsgConfig conf() {
        return MsgIdLimitGift.LIMIT_TIME_GIFT_DATA_RESP;
    }
}
